<%@ page language="java" pageEncoding="UTF-8" buffer="16kb"%>
<%@ include file="/base.jsp"%>
<%@ include file="/module/taglibs.jsp"%>
<%@ include file="/module/nocache.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <%@ include file="/module/js.jsp"%>
    <script type="text/javascript" src="${basePath}/js/jquery.Huploadify.js"></script>
	<link href="${basePath}/css/Huploadify.css" rel="stylesheet">
	<style>
	table label.error {
		margin-left: 5px;
		width: auto;
		display: inline;
		color: red;
	}
	.textat {text-align: center;}
	</style>
    <script>
        $(document).ready(function() {
        	$("#div1").dialog({
				width : 'auto',
				height : 'auto',
				bgiframe : true,
				modal : true,
				draggable : true,
				resizable : true,
				title : '选择成员',
				autoOpen : false,
			    buttons : {
			    '取消' : function() {
			    	$(this).dialog('close');
				},
				'确定' : function() {
				  var kccy_id = $("#toSelect2 option").map(function(){
					     return $(this).val();
					 }).get().join(",")
				  var kccy_name = $("#toSelect2 option").map(function(){
					     return $(this).text();
					 }).get().join(",")
			      $("#kccy").val(kccy_name);
				  $("#kccy_id").val(kccy_id);
				  $(this).dialog('close');
				}
			  }
			});
            var stepStatus = $('#stepStatus1').val();
        	if(stepStatus >= 2) {
        		$("#result").show();
        	}
        	//默认显示隐藏
        	for(var i=1;i<=5;i++){
        		$("#edit_step_"+i).hide();
        		$("#view_step_"+i).show();
        	}
        	var type = $('#type').val();
        	if(type == '1') {
        		for(var i=1;i<=5;i++) {
        			$("#view_table_"+i).hide();
        		}
        	}
        	if(type == '2') {
        		for(var i=1;i<=5;i++) {
        			var stepStatus = $("#stepStatus"+i).val();
        			$("#table_"+i).hide();
        			if(stepStatus == 3) {
        				$("#view_table_"+i).hide();
        			}else {
        				$("#view_table_"+i).show();
        			}
        		}
        	}
        	//返回按钮
        	$("#btnReturn1,#btnReturn2,#btnReturn3,#btnReturn4,#btnReturn5").click(function(){
        		if(type == '1') {
        			window.location.href = "${basePath}/researchProject/index";
        		}else if(type == '2') {
        			window.location.href = "${basePath}/researchProjectAuditing/index";
        		}
        	});
        	//切换编辑页面和view页面
        	$("#btnEdit1,#btnEdit2,#btnEdit3,#btnEdit4,#btnEdit5").click(function(){
        		var step = $(this).attr("editStep");
        		$("#edit_step_"+step).show();
        		$("#view_step_"+step).hide();
        	});
        	//切换编辑页面和view页面
        	$("#btnCancel1,#btnCancel2,#btnCancel3,#btnCancel4,#btnCancel5").click(function(){
        		var step = $(this).attr("cancelStep");
        		$("#edit_step_"+step).hide();
        		$("#view_step_"+step).show();
        	});
        	//保存
        	$("#btnSave1").click(function(){
        		$("#form_step_1").attr("action","${basePath}/researchProject/saveProject");
        		$("#form_step_1").submit();
        	});
        	//保存
        	$("#btnSave2,#btnSave3,#btnSave4,#btnSave5").click(function(){
        		var formSaveStep = $(this).attr("formSaveStep");
        		$("#stepStatus"+formSaveStep).val("1");
        		$("#form_step_"+formSaveStep).attr("action","${basePath}/researchProject/save")
        		$("#form_step_"+formSaveStep).submit();
        	});
        	//提交
        	$("#btnSubmit1,#btnSubmit2,#btnSubmit3,#btnSubmit4,#btnSubmit5").click(function(){
        		var step = $(this).attr("formStep");
        		$("#stepStatus").val("2");
        		$("#view_form_step_"+step).attr("action","${basePath}/researchProject/setStepStatus")
        		$("#view_form_step_"+step).submit();
        	});
        	var stepStatus1 = $("#stepStatus1").val();
	    	var stepStatus2 = $("#stepStatus2").val();
	    	var stepStatus3 = $("#stepStatus3").val();
	    	var stepStatus4 = $("#stepStatus4").val();
	    	var stepStatus5 = $("#stepStatus5").val();
	    	for(var i = 1; i < 6; i++) {
	    		var stepStatus = $("#stepStatus"+i).val();
	    		if(stepStatus == 0) {
		    		 $('#view_table_'+i).hide();
		    	}
		    	if(stepStatus == 1) {
		    		 $('#view_table_'+i).hide();
		    	}
		    	if(stepStatus == 3) {
		    		 $('#view_table_'+i).hide();
		    	}
		    	if(stepStatus == 4) {
		    		 $('#view_table_'+i).hide();
		    	}
	    	}
	    	if(stepStatus1 == 3) {
	    		$("#btnSubmit1").hide();
	    		$("#btnEdit1").hide();
	    	}
	    	if(stepStatus2 == 3) {
	    		$("#btnSubmit2").hide();
	    		$("#btnEdit2").hide();
	    	}
	    	if(stepStatus3 == 3) {
	    		$("#btnSubmit3").hide();
	    		$("#btnEdit3").hide();
	    	}
	    	if(stepStatus4 == 3) {
	    		$("#btnSubmit4").hide();
	    		$("#btnEdit4").hide();
	    	}
	    	if(stepStatus5 == 3) {
	    		$("#btnSubmit5").hide();
	    		$("#btnEdit5").hide();
	    	}
	    	
        	$('#tt').tabs({
        	    onSelect:function(title){
        	    	
        	    	var stepStatus1 = $("#stepStatus1").val();
        	    	var stepStatus2 = $("#stepStatus2").val();
        	    	var stepStatus3 = $("#stepStatus3").val();
        	    	var stepStatus4 = $("#stepStatus4").val();
        	    	var stepStatus5 = $("#stepStatus5").val();
        	    	if(stepStatus1!=3){
        	    		$('#tt').tabs('disableTab', 1);	
        	    	}
        	    	if(stepStatus2!=3){
        	    		$('#tt').tabs('disableTab', 2);	
        	    	}
        	    	if(stepStatus3!=3){
        	    		$('#tt').tabs('disableTab', 3);	
        	    	}
        	    	if(stepStatus4!=3){
        	    		$('#tt').tabs('disableTab', 4);	
        	    	} 
        	    	
        	    }
        	});
        	// 课题审核 btnDisAgree1
        	//同意
        	$("#btnAgree1,#btnAgree2,#btnAgree3,#btnAgree4,#btnAgree5").click(function(){
        		var agree = $(this).attr("agree");
        		$("#stepStatus"+agree).val("3");
        		var suggestion = $("#auditSuggestion"+agree).val();
        		$("#view_form_step_"+agree).attr("action","${basePath}/researchProject/agree");
        		$("#view_form_step_"+agree).submit();
        	});
        	//不同意
        	$("#btnDisAgree1,#btnDisAgree2,#btnDisAgree3,#btnDisAgree4,#btnDisAgree5").click(function(){
        		var disagree = $(this).attr("disagree");
        		$("#stepStatus"+disagree).val("4");
        		var suggestion = $("#auditSuggestion"+disagree).val();
        		alert(suggestion);
        		$("#view_form_step_"+disagree).attr("action","${basePath}/researchProject/disAgree")
        		$("#view_form_step_"+disagree).submit();
        	});
        	
        	//默认选择哪个
        	//$('#tt').tabs('select','开题报告');
        	if(stepStatus1 == 3) {
        		$('#tt').tabs('select','开题报告');
        	}
        	if(stepStatus2 == 3) {
        		$('#tt').tabs('select','中期报告');
        	}
        	if(stepStatus3 == 3) {
        		$('#tt').tabs('select','结题报告');
        	}
        	if(stepStatus4 == 3) {
        		$('#tt').tabs('select','研究过程及附件');
        	}
        	
        });  
        function showdiv() {
    		$('#div1').dialog('open');
    	}
        //图片上传
        var file_path = "prefix";
        var file_path_one = null;
        var fileMap = new Array();
        $(function(){
            var up = $('#uploadadd').Huploadify({
                auto:false,
                fileTypeExts:'*.*',
                multi:true,
                formData:{key:123456,key2:'vvvv'},
                fileSizeLimit:99999999999,
                showUploadedPercent:true,
                showUploadedSize:true,
                removeTimeout:9999999,
                uploader : '${basePath}/researchProject/source_upload',
                onUploadStart:function(file){
                    console.log(file.Name+'开始上传');
                },
                onInit:function(obj){
                    console.log('初始化');
                    console.log(obj);
                },
                onUploadComplete:function(file,data){   
                    debugger;
                    var fi = $.parseJSON(data);
                    //文件名称
                    var filename = fi.fileName;
                    //生成后的文件名
                    var sysFilepath = fi.sysfilepath;
                    //文件路径
                    var filepath = fi.filePath;
                    file_path_one = filename + "," + filepath;
                    file_path = file_path+"|"+filepath;
                    up.filePath=file_path_one;
                    //保存到集合
                    fileMap[file.index]=new Array(file_path_one);
                },
                onCancel:function(file){
                    console.log(file.name+'删除成功');
                },
                onClearQueue:function(queueItemCount){
                    console.log('有'+queueItemCount+'个文件被删除了');
                },
                onDestroy:function(){
                    console.log('destroyed!');
                },
                onSelect:function(file){
                    console.log(file.name+'加入上传队列');
                },
                onQueueComplete:function(queueData){
                    console.log('队列中的文件全部上传完成',queueData);
                }
            });
        });

      //已有的数据进行删除操作
		function deleteByPK(id,filePath){
			var action = "${basePath}/researchProject/source_upload_update";
		    layer.confirm("您是否删除当前选中数据信息", {icon: 3, title:'提示',skin:'layer-ext-moon'}, function(index){
					$.ajax({
						type : "POST",
						url : action,
						//dataType:"json",
						data:{
							fileId : id,
							filePath : filePath
						},
						success : function(data) {
							if(data.success == "0000"){
								layer.alert('删除数据成功', {icon: 6});
								$("#"+id+"_hr").parent().parent().remove();
							}else{
								layer.alert('未写入数据库的文件没有删除！请联系管理员！', {icon: 5});
							}
						}
					})
			 },function(index){
			    layer.close(index);
		     });
	      }
    </script>
    <style type="text/css">
        .grid{font:12px arial,helvetica,sans-serif;border:1px solid #cccccc}
        .grid td{font:100% arial,helvetica,sans-serif;height:24px;padding:5px}
        .grid{width:100%;border-collapse:collapse}.grid th{background:#eeeeee;height:27px;line-height:27px;border:1px solid #cccccc;padding-left:5px}
        .grid td{border:1px solid #cccccc;padding-left:5px;text-align: center;}
    </style>
</head>
<body>
<div style="text-align: center;padding-bottom: 20px;">
    <span class="table-header">课题信息</span>
</div>
<div id="tt" style="width:auto;height:auto;">
    <div title="填报课题" id="divone1" style="overflow:auto;padding:20px;">
    <div id="edit_step_1">
        <form action="#" id="form_step_1" name="form_step_1">
            <input type="hidden" name="empId" id="empId" value="${user.emid}" />
            <input type="hidden" name="kTID" id="kTID" value="${researchProject.kTID}" />
            <input type="hidden" name="kccy_id" id="kccy_id" value="${kccy_id}" />
            <input type="hidden" id="stepId" name="stepId" value="${researchProjectStep1.stepId }"/>
            <input type="hidden" id="stepStatus1" name="stepStatus" value="${researchProjectStep1.stepStatus}"/>
            <input type="hidden" name="stepIndex" id="stepIndex" value="${researchProjectStep1.stepIndex}" />
            <input type="hidden" name="type" id="type" value="${type}"/>
            <table cellpadding="0" cellspacing="0" border="0" class="table-border"
                   width="95%">
               <tr>
                    <td class="table-titleTD" style="width: 15%">
                    <font style="color: red;">*</font>标题：</td>
                    <td colspan="3" class="table-contentTD" style="width: auto;">
                        <input type="text" id="subject" name="subject" value="${researchProject.subject }" maxlength="50" style="width: 80%" class="inputText required" placeholder="请输入标题"/>
                    </td>
                </tr>
                <tr>
                    <td class="table-titleTD" style="width: 15%">类别：</td>
                    <td class="table-contentTD" style="width: 35%">
                    <input type="text" id="kTLB" name="kTLB" value="${researchProject.kTLB }" maxlength="50" class="inputText" placeholder="请输入类别"/>
                    </td>
                    <td class="table-titleTD" style="width: 15%">时间：</td>
                    <td class="table-contentTD" style="width: 35%">
                        <input name="kTSJ" id="kTSJ"  autocomplete="off" readonly="readonly" 
                        value="${researchProject.kTSJ }"
                               class="Wdate inputText2"
                               onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
                    </td>
                </tr>
                <tr>
                    <td class="table-titleTD" style="width: 15%">提交人：</td>
                    <td class="table-contentTD" style="width: 35%">
                        <input type="text" id="empName" name="empName" value="${researchProject.empName}" maxlength="50" 
                        class="inputText"   readonly="readonly"  placeholder="提交人"/>
                    </td>
                    <td class="table-titleTD" style="width: 15%">提交时间：</td>
                    <td  colspan="3" class="table-contentTD" style="width: auto;">
                    <input type="text" id="createTime"  name="createTime" value="${researchProject.createTime}" 
                        maxlength="50"  placeholder="提交时间"
                         class="Wdate inputText2" 
                        onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
                    </td>
                </tr>
                <tr>
                    <td class="table-titleTD" style="width: 15%">课程成员：</td>
                    <td class="table-contentTD" colspan="3" style="width: auto;">
                    <input type="text" id="kccy" name="kccy" value="${kccy_name}" maxlength="100" readonly="readonly" style="width: 80%" class="inputText" placeholder="课程成员"/>&nbsp&nbsp;
                        <input type="button" id="btnSelect" value="选择"
                               class="inputButton" onclick="javascript:showdiv();"/>
                    </td>
                </tr>
                <tr>
                     <td class="table-titleTD" style="width: 15%">关键字：</td>
                    <td colspan="3" class="table-contentTD" style="width: 35%">
                        <input type="text" id="keyWords" name="keyWords" value="${researchProject.keyWords }" maxlength="50" class="inputText" placeholder="请输入关键字"/>
                    </td>
                </tr>
                 <tr>
                    <td class="table-titleTD" style="width: 15%">正文：</td>
                    <td class="table-contentTD" colspan="3" style="width: auto;">
                        <textarea rows="5" cols="50"  id="contents" name="contents" maxlength="1000" class="inputText" placeholder="请输入正文">${researchProject.contents}</textarea>
                    </td>
                </tr>
            </table>
            <br />
            <table>
                <c:if test="${_login_user_type==2}">
                 <tr>
                    <td>
                     <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="modify"> 
                    <input type="button" id="btnSave1" autocomplete="off"  class="inputButton"
                               style="text-align: center;" value="保存" formSaveStep="1"/>
                       </kl:permission>	
                    </td>
                    <td><input type="button" id="btnCancel1" autocomplete="off"  class="inputButton"
                    style="text-align: center;" value="取消" cancelStep="1"/></td>
                    <td><input type="button" id="btnReturn1" autocomplete="off"  class="inputButton"
                               value="返回" style="text-align: center;" /></td>
                </tr>
               </c:if>
            </table>
        </form>
    </div>
    <div id="view_step_1">
         <form action="#" id="view_form_step_1" name="view_form_step_1">
           <input type="hidden" name="empId" id="empId" value="${user.emid}" />
            <input type="hidden" name="kTID" id="kTID" value="${researchProject.kTID}" />
            <input type="hidden" name="kccy_id" id="kccy_id" value="${kccy_id}" />
            <input type="hidden" id="stepId" name="stepId" value="${researchProjectStep1.stepId}"/>
            <input type="hidden" id="stepStatus1" name="stepStatus" value="${researchProjectStep1.stepStatus}"/>
             <input type="hidden" name="curStep" id="curStep" value="${researchProject.curStep}" />
             <input type="hidden" name="stepIndex" id="stepIndex" value="${researchProjectStep1.stepIndex}" />
           <table cellpadding="0" cellspacing="0" border="0" class="table-border"
                  width="95%">
              <tr>
                   <td class="table-titleTD" style="width: 15%">标题：</td>
                   <td colspan="3" class="table-contentTD" style="width: 35%">
                   		${researchProject.subject}
                   </td>
               </tr>
               <tr>
                   <td class="table-titleTD" style="width: 15%">类别：</td>
                   <td class="table-contentTD" style="width: 35%">
                   		${researchProject.kTLB}
                   </td>
                   <td class="table-titleTD" style="width: 15%">时间：</td>
                   <td class="table-contentTD" style="width: 35%">
                   		${researchProject.kTSJ}
                   </td>
               </tr>
               <tr>
                   <td class="table-titleTD" style="width: 15%">提交人：</td>
                   <td class="table-contentTD" style="width: 35%">
                       ${researchProject.empName}
                   </td>
                   <td class="table-titleTD" style="width: 15%">提交时间：</td>
                   <td  colspan="3" class="table-contentTD" style="width: 35%">
                 		${researchProject.createTime}
                   </td>
               </tr>
               <tr>
                   <td class="table-titleTD" style="width: 15%">课程成员：</td>
                   <td class="table-contentTD" colspan="3" style="width: auto;">
                   		${kccy_name}
                   </td>
               </tr>
               <tr>
                    <td class="table-titleTD" style="width: 15%">关键字：</td>
                   <td colspan="3" class="table-contentTD" style="width: 35%">
                   		${researchProject.keyWords}
                   </td>
               </tr>
                <tr>
                   <td class="table-titleTD" style="width: 15%">正文：</td>
                   <td class="table-contentTD" colspan="3" style="width: auto;">
                   		${researchProject.contents}
                   </td>
               </tr>
           </table>
           <table id="table_1">
           <br/>
             <c:if test="${_login_user_type==2}">
               <tr>
                   <td>
                    <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="sbumit"> 
                   <input type="button" id="btnSubmit1" autocomplete="off"   class="inputButton"
                              style="text-align: center;" value="提交" formStep="1" />
                    </kl:permission>	
                   </td>
                   <td>
                    <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="modify"> 
                   <input type="button" id="btnEdit1" autocomplete="off"  class="inputButton"
                             style="text-align: center;" value="修改" editStep="1"/>
                      </kl:permission>	
                    </td>
                    <td><input type="button" id="btnReturn1" autocomplete="off"  class="inputButton"
                               value="返回" style="text-align: center;" /></td>
               </tr>
              </c:if>
           </table>
           <table id="view_table_1">
             <c:if test="${_login_user_type==2}">
           <br/>
               <tr>
                     <td class="table-titleTD" style="width: 15%">审批意见：</td>
                    <td class="table-contentTD" style="width: 35%">
                        <input type="text" id="auditSuggestion1" name="auditSuggestion" value="" style="width: 100%" maxlength="50" class="inputText" placeholder="请输入关键字"/>
                    </td>
                   <td>
                     <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="check"> 
                   <input type="button" id="btnAgree1" autocomplete="off"   class="inputButton"
                              style="text-align: center;"  value="同意" agree ="1" />
                         </kl:permission>
                        <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="check"> 
                       <input type="button" id="btnDisAgree1" autocomplete="off"  class="inputButton"
                             style="text-align: center;" value="不同意" disagree="1"/>  </kl:permission>
                       <input type="button" id="btnReturn1" autocomplete="off"  class="inputButton"
                               value="返回" style="text-align: center;" />
                    </td>
               </tr>
               </c:if>
           </table>
       </form>
    </div>
   </div>
    <div title="开题报告" style="overflow:auto;padding:20px;">
       <div id="edit_step_2">
        <form action="#" id="form_step_2" name="form_step_2">
            <input type="hidden" id="stepId" name="stepId" value="${researchProjectStep2.stepId }"/>
            <input type="hidden" id="stepStatus2" name="stepStatus" value="${researchProjectStep2.stepStatus}"/>
               <input type="hidden" name="kTID" id="kTID" value="${researchProject.kTID}" />
               <input type="hidden" name="stepIndex" id="stepIndex" value="${researchProjectStep2.stepIndex}" />
	        <table cellpadding="0" cellspacing="0" border="0" class="table-border"
	               width="95%">
                <tr>
                   <td class="table-titleTD" style="width: 15%">标题：</td>
                    <td class="table-contentTD"  style="width: 35%">
                    <input type="text" id="stepSubject" name="stepSubject" value="${researchProjectStep2.stepSubject }" maxlength="50" class="inputText required" placeholder="请输入活动名称"/>
                    </td>
                    <td class="table-titleTD"  style="width: 15%">时间：</td>
                    <td class="table-contentTD"  style="width: 15%">
                        <input name="stepTime" id="stepTime"  autocomplete="off" readonly="readonly" 
                        value="${researchProjectStep2.stepTime }"
                        class="Wdate inputText2" 
                        onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
                    </td>
                </tr>
                 <tr>
                    <td class="table-titleTD" style="width: 15%">内容：</td>
                    <td class="table-contentTD" colspan="3" style="width: auto;">
                        <textarea rows="3" cols="50"  id="stepContent" name="stepContent" maxlength="1000" class="inputText2" placeholder="请输入活动内容">${researchProjectStep2.stepContent }</textarea>
                    </td>
                </tr>
	        </table> 
	        <table>
	         <c:if test="${_login_user_type==2}">
            <br/>
                <tr>
                    <td>
                     <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="modify"> 
                    <input type="button" id="btnSave2" autocomplete="off"  class="inputButton"
                               style="text-align: center;" value="保存" formSaveStep="2"/>
                      </kl:permission>           
                    </td>
                    <td><input type="button" id="btnCancel2" autocomplete="off"  class="inputButton"
                    style="text-align: center;" value="取消" cancelStep="2"/></td>
                    <td><input type="button" id="btnReturn2" autocomplete="off"  class="inputButton"
                               value="返回" style="text-align: center;" /></td>
                </tr>
              </c:if> 
            </table>
          </form>
       </div>
       <div id="view_step_2">
        <form action="#" id="view_form_step_2" name="view_form_step_2">
          <input type="hidden" id="stepId" name="stepId" value="${researchProjectStep2.stepId }"/>
            <input type="hidden" id="stepStatus2" name="stepStatus" value="${researchProjectStep2.stepStatus}"/>
               <input type="hidden" name="kTID" id="kTID" value="${researchProject.kTID}" />
               <input type="hidden" name="curStep" id="curStep" value="${researchProject.curStep}" />
               <input type="hidden" name="stepIndex" id="stepIndex" value="${researchProjectStep2.stepIndex}" />
           <table cellpadding="0" cellspacing="0" border="0" class="table-border"
	               width="80%">
                <tr>
                   <td class="table-titleTD" style="width: 15%">标题：</td>
                    <td class="table-contentTD" style="width: 35%">
                    ${researchProjectStep2.stepSubject }
                    </td>
                    <td class="table-titleTD" style="width: 15%">时间：</td>
                    <td class="table-contentTD" style="width: 35%">
                       ${researchProjectStep2.stepTime }
                       
                    </td>
                </tr>
                 <tr>
                    <td class="table-titleTD" style="width: 15%">内容：</td>
                    <td class="table-contentTD" colspan="3" style="width: auto;">
                        ${researchProjectStep2.stepContent }
                    </td>
                </tr>
	        </table> 
           <table id="table_2">
            <c:if test="${_login_user_type==2}">
               <br/>
               <tr>
                   <td>
                     <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="submit">
                   <input type="button" id="btnSubmit2" autocomplete="off"   class="inputButton"
                              style="text-align: center;" value="提交" formStep="2"/>
                    </kl:permission>          
                    </td>
                   <td>
                   <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="modify">
                   <input type="button" id="btnEdit2" autocomplete="off"  class="inputButton"
                             style="text-align: center;" value="修改" editStep="2"/>
                      </kl:permission>        
                     </td>
                    <td><input type="button" id="btnReturn2" autocomplete="off"  class="inputButton"
                               value="返回" style="text-align: center;" /></td>
               </tr>
              </c:if>
           </table>
            <table id="view_table_2">
            <c:if test="${_login_user_type==2}">
           <br/>
               <tr>
                     <td class="table-titleTD" style="width: 10%">审批意见：</td>
                    <td class="table-contentTD" style="width: 30%">
                        <input type="text" id="auditSuggestion2" name="auditSuggestion" value="" style="width: 100%" maxlength="50" class="inputText" placeholder="请输入关键字"/>
                    </td>
                   <td>
                    <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="check">
                   <input type="button" id="btnAgree2" autocomplete="off"   class="inputButton"
                              style="text-align: center;" value="同意" agree ="2" />  </kl:permission> 
                    <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="check">
                   <input type="button" id="btnDisAgree2" autocomplete="off"  class="inputButton"
                             style="text-align: center;" value="不同意" disagree="2"/></kl:permission> 
                    <input type="button" id="btnReturn2" autocomplete="off"  class="inputButton"
                               value="返回" style="text-align: center;" /></td>
               </tr>
              </c:if>
           </table>
           </form>
       </div>
    </div>
    <div title="中期报告" style="overflow:auto;padding:20px;">
       <div id="edit_step_3">
        <form action="#" id="form_step_3" name="form_step_3">
           <input type="hidden" id="stepId" name="stepId" value="${researchProjectStep3.stepId }"/>
            <input type="hidden" id="stepStatus3" name="stepStatus" value="${researchProjectStep3.stepStatus}"/>
               <input type="hidden" name="kTID" id="kTID" value="${researchProject.kTID}" />
               <input type="hidden" name="stepIndex" id="stepIndex" value="${researchProjectStep3.stepIndex}" />
	        <table cellpadding="0" cellspacing="0" border="0" class="table-border"
	               width="95%">
                <tr>
                   <td class="table-titleTD" style="width: 15%">标题：</td>
                    <td class="table-contentTD"  style="width: 35%">
                    <input type="text" id="stepSubject" name="stepSubject" value="${researchProjectStep3.stepSubject }" maxlength="50" class="inputText required" placeholder="请输入活动名称"/>
                    </td>
                    <td class="table-titleTD" style="width: 15%">时间：</td>
                    <td class="table-contentTD" style="width: 35%">
                        <input name="stepTime" id="stepTime"  autocomplete="off" readonly="readonly" 
                        value="${researchProjectStep3.stepTime }"
                        class="Wdate inputText2"
                        onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
                    </td>
                </tr>
                 <tr>
                    <td class="table-titleTD" style="width: 15%">内容：</td>
                    <td class="table-contentTD" colspan="3" style="width: auto;">
                        <textarea rows="3" cols="50"  id="stepContent" name="stepContent" maxlength="1000" class="inputText" placeholder="请输入活动内容">${researchProjectStep3.stepContent }</textarea>
                    </td>
                </tr>
	        </table> 
	        <table>
	         <c:if test="${_login_user_type==2}">
            <br/>
                <tr>
                    <td>
                      <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="modify">
                    <input type="button" id="btnSave3" autocomplete="off"  class="inputButton"
                               style="text-align: center;" value="保存" formSaveStep="3"/>
                     </kl:permission>            
                    </td>
                    <td><input type="button" id="btnCancel3" autocomplete="off"  class="inputButton"
                    style="text-align: center;" value="取消" cancelStep="3"/></td>
                    <td><input type="button" id="btnReturn3" autocomplete="off"  class="inputButton"
                               value="返回" style="text-align: center;" /></td>
                </tr>
               </c:if>
            </table>
          </form>
       </div>
       <div id="view_step_3">
        <form action="#" id="view_form_step_3" name="view_form_step_3">
            <input type="hidden" id="stepId" name="stepId" value="${researchProjectStep3.stepId }"/>
            <input type="hidden" id="stepStatus3" name="stepStatus" value="${researchProjectStep3.stepStatus}"/>
               <input type="hidden" name="kTID" id="kTID" value="${researchProject.kTID}" />
               <input type="hidden" name="curStep" id="curStep" value="${researchProject.curStep}" />
               <input type="hidden" name="stepIndex" id="stepIndex" value="${researchProjectStep3.stepIndex}" />
           <table cellpadding="0" cellspacing="0" border="0" class="table-border"
	               width="95%">
                <tr>
                   <td class="table-titleTD" style="width: 15%">标题：</td>
                    <td class="table-contentTD" style="width: 35%">
                   ${researchProjectStep3.stepSubject}
                    </td>
                    <td class="table-titleTD" style="width: 15%">时间：</td>
                    <td class="table-contentTD" style="width: 35%">
                       ${researchProjectStep3.stepTime }
                    </td>
                </tr>
                 <tr>
                    <td class="table-titleTD" style="width: 15%">内容：</td>
                    <td class="table-contentTD" colspan="3" style="width: auto;">
                       ${researchProjectStep3.stepContent }
                    </td>
                </tr>
	        </table> 
           <table id="table_3">
            <c:if test="${_login_user_type==2}">
               <br/>
               <tr>
                   <td>
                    <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="submit">
                   <input type="button" id="btnSubmit3" autocomplete="off"   class="inputButton"
                              style="text-align: center;" value="提交" formStep="3"/>
                    </kl:permission>           
                   </td>
                   <td>
                    <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="modify">
                   <input type="button" id="btnEdit3" autocomplete="off"  class="inputButton"
                             style="text-align: center;" value="修改" editStep="3"/>
                   </kl:permission>
                   </td>
                    <td><input type="button" id="btnReturn3" autocomplete="off"  class="inputButton"
                               value="返回" style="text-align: center;" /></td>
               </tr>
             </c:if>
           </table>
            <table id="view_table_3">
              <c:if test="${_login_user_type==2}">
           <br/>
               <tr>
                     <td class="table-titleTD" style="width: 10%">审批意见：</td>
                    <td class="table-contentTD" style="width: 30%">
                        <input type="text" id="auditSuggestion3" name="auditSuggestion" value="" style="width: 100%" maxlength="50" class="inputText" placeholder="请输入关键字"/>
                    </td>
                   <td>
                    <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="check">
                   <input type="button" id="btnAgree3" autocomplete="off"   class="inputButton"
                              style="text-align: center;" value="同意" agree ="3" />  </kl:permission>
                   <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="check">
                  <input type="button" id="btnDisAgree3" autocomplete="off"  class="inputButton"
                             style="text-align: center;" value="不同意" disagree="3"/></kl:permission>
                   <input type="button" id="btnReturn3" autocomplete="off"  class="inputButton"
                               value="返回" style="text-align: center;" /></td>
               </tr>
             </c:if> 
           </table>
           </form>
       </div>
    </div>
     <div title="结题报告" style="overflow:auto;padding:20px;">
       <div id="edit_step_4">
        <form action="#" id="form_step_4" name="form_step_4">
             <input type="hidden" id="stepId" name="stepId" value="${researchProjectStep4.stepId }"/>
            <input type="hidden" id="stepStatus4" name="stepStatus" value="${researchProjectStep4.stepStatus}"/>
               <input type="hidden" name="kTID" id="kTID" value="${researchProject.kTID}" />
               <input type="hidden" name="stepIndex" id="stepIndex" value="${researchProjectStep4.stepIndex}" />
	        <table cellpadding="0" cellspacing="0" border="0" class="table-border"
	               width="95%">
                <tr>
                   <td class="table-titleTD" style="width: 15%">标题：</td>
                    <td class="table-contentTD" style="width: 35%">
                    <input type="text" id="stepSubject" name="stepSubject" value="${researchProjectStep4.stepSubject }" maxlength="50" class="inputText required" placeholder="请输入活动名称"/>
                    </td>
                    <td class="table-titleTD" style="width: 15%">时间：</td>
                    <td class="table-contentTD" style="width: 35%">
                        <input name="stepTime" id="stepTime"  autocomplete="off" readonly="readonly" 
                        value="${researchProjectStep4.stepTime }"
                        class="Wdate inputText2" 
                        onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
                    </td>
                </tr>
                 <tr>
                    <td class="table-titleTD" style="width: 15%">内容：</td>
                    <td class="table-contentTD" colspan="3" style="width: auto;">
                        <textarea rows="3" cols="50"  id="stepContent" name="stepContent" maxlength="1000" class="inputText" placeholder="请输入活动内容">${researchProjectStep4.stepContent }</textarea>
                    </td>
                </tr>
	        </table> 
	        <table>
	         <c:if test="${_login_user_type==2}">
            <br/>
                <tr>
                    <td>
                      <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="modify">
                    <input type="button" id="btnSave4" autocomplete="off"  class="inputButton"
                               style="text-align: center;" value="保存" formSaveStep="4"/>
                    </kl:permission>           
                    </td>
                    <td><input type="button" id="btnCancel4" autocomplete="off"  class="inputButton"
                    style="text-align: center;" value="取消" cancelStep="4"/></td>
                    <td><input type="button" id="btnReturn4" autocomplete="off"  class="inputButton"
                               value="返回" style="text-align: center;" /></td>
                </tr>
              </c:if>
            </table>
          </form>
       </div>
       <div id="view_step_4">
        <form action="#" id="view_form_step_4" name="view_form_step_4">
           <input type="hidden" id="stepId" name="stepId" value="${researchProjectStep4.stepId }"/>
            <input type="hidden" id="stepStatus4" name="stepStatus" value="${researchProjectStep4.stepStatus}"/>
               <input type="hidden" name="kTID" id="kTID" value="${researchProject.kTID}" />
               <input type="hidden" name="curStep" id="curStep" value="${researchProject.curStep}" />
               <input type="hidden" name="stepIndex" id="stepIndex" value="${researchProjectStep4.stepIndex}" />
           <table cellpadding="0" cellspacing="0" border="0" class="table-border"
	               width="95%">
                <tr>
                   <td class="table-titleTD" style="width: 15%">标题：</td>
                    <td class="table-contentTD" style="width: 35%">
                  ${researchProjectStep4.stepSubject }
                    </td>
                    <td class="table-titleTD" style="width: 15%">时间：</td>
                    <td class="table-contentTD" style="width: 35%">
                       ${researchProjectStep4.stepTime }
                    </td>
                </tr>
                 <tr>
                    <td class="table-titleTD" style="width: 15%">内容：</td>
                    <td class="table-contentTD" colspan="3" style="width: auto;">
                     ${researchProjectStep4.stepContent }
                    </td>
                </tr>
	        </table> 
           <table id="table_4">
            <c:if test="${_login_user_type==2}">
               <br/>
               <tr>
                   <td>
                    <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="submit">
                   <input type="button" id="btnSubmit4" autocomplete="off"   class="inputButton"
                              style="text-align: center;" value="提交" formStep="4"/>
                   </kl:permission>           
                   </td>
                   <td>
                     <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="modify">
                   <input type="button" id="btnEdit4" autocomplete="off"  class="inputButton"
                             style="text-align: center;" value="修改" editStep="4"/>
                   </kl:permission>          
                   </td>
                    <td><input type="button" id="btnReturn4" autocomplete="off"  class="inputButton"
                               value="返回" style="text-align: center;" /></td>
               </tr>
             </c:if> 
           </table>
            <table id="view_table_4">
            <c:if test="${_login_user_type==2}">
           <br/>
               <tr>
                     <td class="table-titleTD" style="width: 10%">审批意见：</td>
                    <td class="table-contentTD" style="width: 30%">
                        <input type="text" id="auditSuggestion4" name="auditSuggestion" value="" style="width: 100%" maxlength="50" class="inputText" placeholder="请输入关键字"/>
                    </td>
                   <td>
                     <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="check">
                   <input type="button" id="btnAgree4" autocomplete="off"   class="inputButton"
                              style="text-align: center;" value="同意" agree ="4" /> </kl:permission>     
                    <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="check">
                   <input type="button" id="btnDisAgree4" autocomplete="off"  class="inputButton"
                             style="text-align: center;" value="不同意" disagree="4"/> </kl:permission> 
                    <input type="button" id="btnReturn4" autocomplete="off"  class="inputButton"
                               value="返回" style="text-align: center;" /></td>
               </tr>
             </c:if>
           </table>
           </form>
       </div>
    </div>
     <div title="研究过程及附件" style="overflow:auto;padding:20px;">
       <div id="edit_step_5">
        <form action="#" id="form_step_5" name="form_step_5">
           <input type="hidden" id="stepId" name="stepId" value="${researchProjectStep5.stepId }"/>
            <input type="hidden" id="stepStatus5" name="stepStatus" value="${researchProjectSte5.stepStatus}"/>
               <input type="hidden" name="kTID" id="kTID" value="${researchProject.kTID}" />
               <input type="hidden" name="stepIndex" id="stepIndex" value="${researchProjectStep5.stepIndex}" />
	        <table cellpadding="0" cellspacing="0" border="0" class="table-border"
	               width="95%">
                <tr>
                   <td class="table-titleTD" style="width: 15%">标题：</td>
                    <td class="table-contentTD" style="width: 35%">
                    <input type="text" id="stepSubject" name="stepSubject" value="${researchProjectStep5.stepSubject }" maxlength="50" class="inputText required" placeholder="请输入活动名称"/>
                    </td>
                    <td class="table-titleTD" style="width: 15%">时间：</td>
                    <td class="table-contentTD" style="width: 35%">
                        <input name="stepTime" id="stepTime"  autocomplete="off" readonly="readonly" 
                        value="${researchProjectStep5.stepTime }"
                        class="Wdate inputText2" 
                        onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
                    </td>
                </tr>
               <tr>
				<td class="table-titleTD" style="width: 15%">附件：</td>
				<td class="table-contentTD" colspan="3" style="width: auto;">
					<table>
						<tr>
							<td colspan="2">
								<div id="uploadadd"></div>
							</td>
						</tr>
						<c:if test="${fn:length(dataList) > 0}">
							<c:forEach items="${dataList}" var="datalist" varStatus="index">
								<tr>
									<td>
										[文件] ${datalist.fileName}
									</td>
									<td>
										<a href="${basePath}/DownLoadFileServlet?filename=${datalist.fileName}&filepath=${datalist.filePath}">下载</a>
										
										<%-- <button type="button"  onclick="window.location.href='${basePath}/DownLoadFileServlet?filename=${datalist.fileName}&filepath=${datalist.filePath}'">下载</button> --%>
										&nbsp;&nbsp;
										
										<button id="${datalist.fileId}_hr" type="button"  onclick="deleteByPK('${datalist.fileId}','${datalist.filePath}');">删除</button>
									</td>
								</tr>
							</c:forEach>
						</c:if>
					</table>
				</td>
			</tr>
                 <tr>
                    <td class="table-titleTD" style="width: 15%">内容：</td>
                    <td class="table-contentTD" colspan="3" style="width: auto;">
                        <textarea rows="3" cols="50"  id="stepContent" name="stepContent" maxlength="1000" class="inputText" placeholder="请输入活动内容">${researchProjectStep5.stepContent }</textarea>
                    </td>
                </tr>
	        </table> 
	        <table>
	        <c:if test="${_login_user_type==2}">
            <br/>
                <tr>
                    <td>
                     <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="modify">
                    <input type="button" id="btnSave5" autocomplete="off"  class="inputButton"
                               style="text-align: center;" value="保存" formSaveStep="5"/>
                    </kl:permission>           
                    </td>
                    <td><input type="button" id="btnCancel5" autocomplete="off"  class="inputButton"
                    style="text-align: center;" value="取消" cancelStep="5"/></td>
                    <td><input type="button" id="btnReturn5" autocomplete="off"  class="inputButton"
                               value="返回" style="text-align: center;" /></td>
                </tr>
              </c:if>
            </table>
          </form>
       </div>
       <div id="view_step_5">
        <form action="#" id="view_form_step_5" name="view_form_step_5">
          <input type="hidden" id="stepId" name="stepId" value="${researchProjectStep5.stepId }"/>
            <input type="hidden" id="stepStatus5" name="stepStatus" value="${researchProjectStep5.stepStatus}"/>
               <input type="hidden" name="kTID" id="kTID" value="${researchProject.kTID}" />
               <input type="hidden" name="curStep" id="curStep" value="${researchProject.curStep}" />
               <input type="hidden" name="stepIndex" id="stepIndex" value="${researchProjectStep5.stepIndex}" />
           <table cellpadding="0" cellspacing="0" border="0" class="table-border"
	               width="95%">
                <tr>
                   <td class="table-titleTD" style="width: 15%">标题：</td>
                    <td class="table-contentTD" style="width: 35%">
                  ${researchProjectStep5.stepSubject }
                    </td>
                    <td class="table-titleTD" style="width: 15%">时间：</td>
                    <td class="table-contentTD" style="width: 35%">
                       ${researchProjectStep5.stepTime }
                    </td>
                </tr>
               <tr>
				<td class="table-titleTD" style="width: 15%">附件：</td>
				<td class="table-contentTD" colspan="3" style="width: auto;">
					<table>
						<tr>
							<td colspan="2">
								<div id="uploadadd"></div>
							</td>
						</tr>
						<c:if test="${fn:length(dataList) > 0}">
							<c:forEach items="${dataList}" var="datalist" varStatus="index">
								<tr>
									<td>
										[文件] ${datalist.fileName}
									</td>
									<td>
										<a href="${basePath}/DownLoadFileServlet?filename=${datalist.fileName}&filepath=${datalist.filePath}">下载</a>
										
										<%-- <button type="button"  onclick="window.location.href='${basePath}/DownLoadFileServlet?filename=${datalist.fileName}&filepath=${datalist.filePath}'">下载</button> --%>
										&nbsp;&nbsp;
										
										<%-- <button id="${datalist.fileId}_hr" type="button"  onclick="deleteByPK('${datalist.fileId}','${datalist.filePath}');">删除</button> --%>
									</td>
								</tr>
							</c:forEach>
						</c:if>
					</table>
				</td>
			</tr>
                 <tr>
                    <td class="table-titleTD" style="width: 15%">内容：</td>
                    <td class="table-contentTD" colspan="3" style="width: auto;">
                        ${researchProjectStep5.stepContent }
                    </td>
                </tr>
	        </table> 
           <table id="table_5">
           <c:if test="${_login_user_type==2}">
               <br/>
               <tr>
                   <td>
                    <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="submit">
                   <input type="button" id="btnSubmit5" autocomplete="off"   class="inputButton"
                              style="text-align: center;" value="提交" formStep="5"/>
                      </kl:permission>          
                    </td>
                   <td>
                    <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="modify">
                   <input type="button" id="btnEdit5" autocomplete="off"  class="inputButton"
                             style="text-align: center;" value="修改" editStep="5"/>  
                   </kl:permission>  
                   </td>
                    <td><input type="button" id="btnReturn5" autocomplete="off"  class="inputButton"
                               value="返回" style="text-align: center;" /></td>
               </tr>
              </c:if>
           </table>
            <table id="view_table_5">
            <c:if test="${_login_user_type==2}">
           <br/>
               <tr>
                     <td class="table-titleTD" style="width: 10%">审批意见：</td>
                    <td class="table-contentTD" style="width: 30%">
                        <input type="text" id="auditSuggestion5" name="auditSuggestion" value="" style="width: 100%" maxlength="50" class="inputText" placeholder="请输入关键字"/>
                    </td>
                   <td>
                     <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="check">
                   <input type="button" id="btnAgree5" autocomplete="off"   class="inputButton"
                              style="text-align: center;" value="同意" agree ="5" /></kl:permission>  
                    <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"JKY_JKS_TJKT\")%>" key="check">
                   <input type="button" id="btnDisAgree5" autocomplete="off"  class="inputButton"
                             style="text-align: center;" value="不同意" disagree="5"/></kl:permission>  
                   <input type="button" id="btnReturn5" autocomplete="off"  class="inputButton"
                               value="返回" style="text-align: center;" /></td>
               </tr>
              </c:if>
           </table>
           </form>
       </div>
    </div>
    
</div>
     <div id="result" style="display: none;" >
          <table cellpadding="0" cellspacing="0" border="0" class="table-border"
                  width="95%">
             <tr>
                 <td colspan="3" align="center">审批结果：</td>
             </tr> 
                 <tr>
                    <td colspan="4">
                         <table class="grid" id="tb_dy_id"  width="80%">
		                   <thead>
		                   <tr>
					        	<th class="table-header" colspan="5">审批结果</th>
					      </tr>
		                   <tr>
		                       <th>步骤</th>
		                       <th>审批人</th>
		                       <th>审批时间</th>
		                       <th>审批结果</th>
		                       <th>审批意见</th>
		                   </tr>
		                   <c:forEach items="${researchProject.researchProjectSteps}" var="rProjectStep">
		                    <tr>
		                       <th>${rProjectStep.stepName }</th>
		                       <th>${rProjectStep.auditorName }</th>
		                       <th>${rProjectStep.auditeTime }</th>
		                       <th>
		                           <c:if test="${rProjectStep.stepStatus == 0 }">待保存</c:if>
		                           <c:if test="${rProjectStep.stepStatus == 1 }">待提交</c:if>
			                       <c:if test="${rProjectStep.stepStatus == 2 }">待审核</c:if>   
			                       <c:if test="${rProjectStep.stepStatus == 3 }">同意</c:if>
			                       <c:if test="${rProjectStep.stepStatus == 4 }">不同意</c:if>
		                       </th>
		                       <th>${rProjectStep.auditSuggestion }</th>
		                   </tr>
		                   </c:forEach>
		                   </thead>
		               </table>
                    </td>
                </tr>
         </table>
    </div>

<div id="div1" style="display: none;">
			<table cellpadding="0" cellspacing="0" border="0"
				class="table-border">
				  <tr>
  	   <td style="clear:both; width: 45%">
  	  <input class="text" name="searchemp" ondblclick="javascript:filterSelectItems('sourseFromSelect2','fromSelect2','toSelect2',this.value);"  
  	  onkeyup="javascript:filterSelectItems('sourseFromSelect2','fromSelect2','toSelect2',this.value);"/><font color="green">在此查找</font> <br/>
  	   <br/><label style="color:red;">未选中:</label><br/>
  	   <select name="fromSelect2" id="fromSelect2" multiple="multiple" class="inputText" style="width:220px; height: 300px;"
			ondblclick="moveField('fromSelect2','toSelect2');">
						<c:forEach items="${employees}" var="data">
							     <option value="${data.emid}">${data.xm}</option>
						</c:forEach>
		</select>
		<select name="sourseFromSelect2" id="sourseFromSelect2" multiple="multiple" style="width:220px; height: 150px;display: none;" 
					ondblclick="moveField('fromSelect2','toSelect2');">
					 <c:forEach items="${eList}" var="data2">
						      <c:forEach items="${employees}" var="data">
							    <c:choose>
							   <c:when test="${data2.emid == data.emid }">  
							   </c:when>
							   <c:otherwise> 
							      <option value="${data.emid}">${data.xm}</option>
							   </c:otherwise>
							</c:choose>    
					      </c:forEach>
						</c:forEach>		
				</select>
  	    </td>
  	    <td align="center" style="width: 10%">
  	    <input type="button"  onclick="moveAllField('fromSelect2','toSelect2');" style="width: 40px;" value=">>"  class="inputButton"/>
		<br>
		 <br/>
		<input type="button"  class="inputButton"
			onclick="moveField('fromSelect2','toSelect2');"
			style="width: 40px;" value=">" />
	   <br/>
	    <br/>
		<input type="button"  class="inputButton"  style="width: 40px;" value="&lt" onclick="moveField('toSelect2','fromSelect2');"/><br/> <br/>
     	<input type="button"  class="inputButton"  style="width: 40px;" onclick="moveAllField('toSelect2','fromSelect2');"  value="&lt&lt" />
     </td>
     <td style="width: 45%"><br/><br/><label style="color:red;">已选中:</label><br/>
     <select name="toSelect2" id="toSelect2" multiple="multiple"  class="inputText"   style="width:220px;height: 300px;" ondblclick="moveField('toSelect2','fromSelect2');">
			<c:forEach items="${eList}" var="data2">
					<option value="${data2.emid}">${data2.xm}</option>
		    </c:forEach>
		</select>
     </td>
  	   </tr>
		</table>
 </div>
</body>
</html>
